﻿<%@ Page Language="C#" MasterPageFile="~/CmsMaster.Master" AutoEventWireup="true" CodeBehind="ReportContract.aspx.cs" Inherits="ContractManagementSystem.Presentation.ReportManagement.ReportContract" Title="Report >>> Contract" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../../Styles/ClientStyle.css" rel="stylesheet" type="text/css" />
        
    <script type = "text/javascript" language = "javascript" src = "../../JavaScript/JsLibrary.js"></script>    
    <script type = "text/javascript" language = "javascript" src = "../../JavaScript/jquery.js"></script>
    <script type = "text/javascript" language = "javascript" src = "../../JavaScript/menu.js"></script>
    

    <link href="../../JavaScript/validationEngine/css/jquery-ui-1.8.21.custom.css" rel="stylesheet"
        type="text/css" />

    <script src="../../JavaScript/validationEngine/js/jquery-ui-1.8.21.custom.min.js"
        type="text/javascript"></script>
        
    <script type="text/javascript">
        $.datepicker.formatDate("MM/dd/yyyy");
        $(document).ready(function(){
               $(".inp-datetime").datepicker();
       });
    </script>
    
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentHolder" runat="server">
    <div class="CPF">
        <h3 class="CPFtitle"></h3>
        <div class="CPFSearch">
            <div class="CPFrow">
                <div class="CPFcols">
                    <label>Contract Number:</label>
                </div>
                <div class="CPFcols">
                    <asp:DropDownList runat="server" ID="dropContractTitle" Height="20px" 
                            Width="150px">
                    </asp:DropDownList>         
                </div>
                
                <div class="CPFcols">
                    <label>Status:</label>
                </div>
                <div class="CPFcols">
                    <asp:DropDownList runat="server" ID="DropDownList1" Width="150px" AutoPostBack="true">
                            <asp:ListItem Value="1">Active</asp:ListItem>
                    </asp:DropDownList>           
                </div>                
                
                <div class="CPFcols">
                        <asp:Button runat="server" ID="ButtonSearch" CssClass="CPFButton1" 
                            Text="Search" onclick="ButtonSearchClick"/>                    
                </div>
                
                <div class="CPFcols">
                        <asp:Button runat="server" ID="ButtonCreateReport" CssClass="CPFButton1"
                            Text="Create Report" Width="99px" onclick="ButtonCreateReportClick"/>                
                </div>     
                           
            </div> 
        </div>

        <div class="CPFGrid">

        <asp:ListView ID="ListViewContract" runat="server" >
            <LayoutTemplate>
                <table class="repeaterTable"  >
                    <tr class="tableHeader">
                        <td style="width:20px;">ContractNumber</td>     
                        <td>Contractor</td>
                        <td >Create Date</td>
                        <td >Start Date</td>
                        <td >End Date</td>
                        <td >Description</td>
                    </tr>
                    <tr id="itemPlaceholder" runat="server"></tr>
                </table>
                <table class="CPFrepeaterTable"  >
                    <tr class="CPFtableHeader">
                    <td class="CPFPage">
                    <asp:DataPager runat="server" ID="ItemDataPager" PageSize="10">
                        <Fields>
                            <asp:NextPreviousPagerField ShowFirstPageButton="true" ShowNextPageButton="false" ButtonCssClass="CPFNumPage" />
                            <asp:NumericPagerField ButtonCount="5" CurrentPageLabelCssClass="CPFCurrentNumPage" NumericButtonCssClass="CPFNumPage"/>
                            <asp:NextPreviousPagerField ShowLastPageButton="true" ShowPreviousPageButton="false" ButtonCssClass="CPFNumPage"/>
                        </Fields>                    
                    </asp:DataPager>        
                    </td>
                    </tr>        
                </table>

            </LayoutTemplate>
            <ItemTemplate>

                <tr class="CPFTr">
                    <td class="CPFtd" style="width:20px;"><asp:Label runat="server" ID="labelContractNumber"><%#DataBinder.Eval(Container.DataItem, "ContractNumber")%></asp:Label></td>
                    <td class="CPFtd" style="width: 100px;"><asp:Label runat="server" ID="labelContracator"><%#DataBinder.Eval(Container.DataItem, "Contractor")%></asp:Label></td>
                    <td class="CPFtd" style="width: 70px; text-align:center;"><asp:Label ID="labelCreatedDate" runat="server"><%#Eval("CreatedDate")%></asp:Label></td>
                    <td class="CPFtd" style="width: 70px; text-align:center;"><asp:Label ID="labelStartDate" runat="server"><%#Eval("StartDate")%></asp:Label></td>
                    <td class="CPFtd" style="width: 70px; text-align:center;"><asp:Label ID="labelEndDate" runat="server"><%#DataBinder.Eval(Container.DataItem, "EndDate")%></asp:Label></td>
                    <td class="CPFtd"><asp:Label ID="labelDescription" runat="server"><%#DataBinder.Eval(Container.DataItem, "Description")%></asp:Label></td>
                </tr> 
          
            </ItemTemplate>            
        </asp:ListView>
        </div>
        
        <div class="CPFResultsSearch"><asp:Label runat="server" ID="labelResultSearch"></asp:Label></div>
    </div>
</asp:Content>
